package com.aspose.cells;

import java.io.OutputStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

public class Chart {
   zpe a = null;
   ArrayList b = null;
   private int f = -1;
   private ChartShape g;
   private ArrayList h;
   private String i = null;
   private int j = -1;
   private PivotOptions k;
   private String l;
   private byte m = 2;
   private int n;
   private boolean o;
   private WorksheetCollection p;
   private Worksheet q;
   private ShapeCollection r;
   private int s = 0;
   private int t = 14;
   zja c;
   private SeriesCollection u;
   private Title v;
   private PlotArea w;
   private ChartArea x;
   private Axis y;
   private Axis z;
   private Axis A;
   private Axis B;
   private Axis C;
   private Legend D;
   private ChartDataTable E;
   private boolean F = true;
   private boolean G = true;
   private boolean H;
   private int I = 150;
   private boolean J = false;
   private Floor K;
   private Walls L;
   private Walls M;
   private boolean N;
   private int O = 20;
   private int P = 15;
   private boolean Q = true;
   private boolean R = true;
   private short S = 100;
   private short T = 15;
   private int U = 100;
   boolean d = false;
   private ArrayList V;
   private ArrayList W;
   private PageSetup X;
   private double Y = 1.0D;
   private double Z = 1.0D;
   int e;
   private int aa = 0;
   private zbmi ab;
   private boolean ac = false;

   int a() {
      return this.f;
   }

   void a(int var1) {
      if (var1 >= 1 && var1 <= 48) {
         this.f = var1;
      }

   }

   public int getStyle() {
      return this.f;
   }

   public void setStyle(int value) {
      if (value >= 1 && value <= 48) {
         this.f = value;
         if (this.a != null) {
            this.a.e = null;
         }
      }

   }

   public ChartShape getChartObject() {
      return this.g;
   }

   ArrayList b() {
      if (this.h == null) {
         this.h = new ArrayList();
      }

      return this.h;
   }

   String c() {
      return this.i;
   }

   void a(String var1) {
      this.i = var1;
      this.j = zaku.a(var1);
   }

   int d() {
      return this.j != -1 ? this.j : this.p.n().getSettings().e().e();
   }

   ArrayList e() {
      return this.h;
   }

   public boolean getHidePivotFieldButtons() {
      return !this.k.DropZonesVisible;
   }

   public void setHidePivotFieldButtons(boolean value) {
      this.k.DropZonesVisible = !value;
   }

   public PivotOptions getPivotOptions() {
      return this.k;
   }

   public String getPivotSource() {
      return this.l;
   }

   public void setPivotSource(String value) {
      this.l = value;
   }

   boolean f() {
      return this.l != null && !"".equals(this.l);
   }

   void g() {
      if (this.f()) {
         this.refreshPivotData();
      } else {
         boolean var1 = this.K();

         for(int var2 = 0; var2 < this.getNSeries().getCount(); ++var2) {
            Series var3 = this.getNSeries().get(var2);
            if (var3.m() != null && var3.m().f() != null && var3.m().f().length > 0) {
               this.a(var1, var3.m());
            }

            if (var3.l() != null && var3.l().f() != null && var3.l().f().length > 0) {
               this.a(var3.l());
            }
         }
      }

   }

   private void a(boolean var1, zik var2) {
      byte var3 = 1;
      int[] var4 = new int[]{var3};
      ArrayList var5 = var2.a(var1, false, var4);
      int var16 = var4[0];
      ArrayList var6 = new ArrayList();
      if (var5 != null && var5.size() != 0) {
         int var7;
         if (var16 == 1) {
            for(var7 = 0; var7 < var5.size(); ++var7) {
               zit var8 = (zit)var5.get(var7);
               if (!this.getPlotVisibleCells() || var8.d) {
                  Object var9 = "";
                  if (!var8.e && !"".equals(var8.a())) {
                     var9 = var8.a;
                  }

                  com.aspose.cells.b.a.a.ze.a(var6, var9);
               }
            }
         } else {
            var7 = var5.size();
            int var17 = ((ArrayList)var5.get(0)).size();
            ArrayList var18 = new ArrayList(var17);

            int var10;
            for(var10 = 0; var10 < var17; ++var10) {
               com.aspose.cells.b.a.a.ze.a(var18, (Object)(new StringBuilder()));
            }

            for(var10 = var7 - 1; var10 >= 0; --var10) {
               ArrayList var11 = (ArrayList)var5.get(var10);

               for(int var12 = 0; var12 < var11.size(); ++var12) {
                  zit var13 = (zit)var11.get(var12);
                  String var14 = "";
                  if (!var13.e && !"".equals(var13.a())) {
                     var14 = var13.a();
                  }

                  StringBuilder var15 = (StringBuilder)var18.get(var12);
                  if (var10 == var7 - 1) {
                     var15.append(var14);
                  } else {
                     var15.append("\n" + var14);
                  }
               }
            }

            for(var10 = 0; var10 < var17; ++var10) {
               StringBuilder var19 = (StringBuilder)var18.get(var10);
               this.a(var19, '\n');
               com.aspose.cells.b.a.a.ze.a(var6, (Object)var19);
            }
         }
      }

      if (var6.size() != 0) {
         var2.a(var6);
      } else {
         var2.a((ArrayList)null);
      }

   }

   private void a(zik var1) {
      boolean var2 = false;
      new StringBuilder(50);
      boolean[] var4 = new boolean[]{var2};
      ArrayList var5 = var1.a(true, false, var4);
      var2 = var4[0];
      ArrayList var6 = new ArrayList();
      if (var5 != null && var5.size() != 0) {
         for(int var7 = 0; var7 < var5.size(); ++var7) {
            zit var8 = (zit)var5.get(var7);
            if (!this.getPlotVisibleCells() || var8.d) {
               String var9 = "0";
               if (var8.g == 4 || var8.g == 1 || var8.g == 0) {
                  var9 = var8.b();
               }

               com.aspose.cells.b.a.a.ze.a(var6, (Object)var9);
            }
         }
      }

      if (var6.size() != 0) {
         var1.a(var6);
      } else {
         var1.a((ArrayList)null);
      }

   }

   private void a(StringBuilder var1, char var2) {
      while(var1.length() > 0 && var1.charAt(var1.length() - 1) == var2) {
         var1.delete(var1.length() - 1, var1.length() - 1 + 1);
      }

   }

   private boolean K() {
      boolean var1 = false;

      for(int var2 = 0; var2 < this.getNSeries().getCount(); ++var2) {
         zik var3 = this.getNSeries().get(var2).l();
         if (var3 != null && var3.c()) {
            var1 = true;
            break;
         }
      }

      return var1;
   }

   public void refreshPivotData() {
      PivotTable var1 = null;
      if (this.l != null && !"".equals(this.l)) {
         String var2 = this.l;
         boolean var3 = true;
         int var9;
         if (var2.charAt(0) == '[') {
            var9 = var2.lastIndexOf(93);
            if (var9 == -1) {
               return;
            }

            var2.substring(1, 1 + (var9 - 2));
            var2 = var2.substring(var9 + 1);
         }

         var9 = var2.lastIndexOf(33);
         Worksheet var4 = this.q;
         String var5 = var4.getName();
         if (var9 != -1) {
            var5 = var2.substring(0, 0 + var9);
            if (var5.charAt(0) == '\'') {
               var5 = var5.substring(1, 1 + (var5.length() - 2));
            }

            var4 = this.p.get(var5);
            if (var4 == null) {
               return;
            }

            var2 = var2.substring(var9 + 1);
         }

         boolean var6 = zakq.b(var5);
         String var7 = var5;
         if (var6) {
            var7 = '\'' + var5 + '\'';
         }

         for(int var8 = 0; var4.b != null && var8 < var4.b.getCount(); ++var8) {
            if (com.aspose.cells.b.a.zv.a(var4.b.get(var8).getName(), var2, true) == 0) {
               var1 = var4.b.get(var8);
               break;
            }
         }

         if (var1 != null) {
            var1.a(this, var7);
         }
      }
   }

   byte h() {
      return this.m;
   }

   void a(byte var1) {
      this.m = var1;
   }

   public int getPlotEmptyCellsType() {
      return this.n;
   }

   public void setPlotEmptyCellsType(int value) {
      this.n = value;
   }

   public boolean getPlotVisibleCells() {
      return (this.m & 255 & 2) != 0;
   }

   public void setPlotVisibleCells(boolean value) {
      if (value) {
         this.m = (byte)(this.m | 2);
      } else {
         this.m = (byte)(this.m & 253);
      }

   }

   public String getName() {
      return this.q.getType() == 2 && this.q.getCharts().get(0) == this ? this.q.getName() : this.getChartObject().getName();
   }

   public void setName(String value) {
      if (this.q.getType() == 2 && this.q.getCharts().get(0) == this) {
         this.q.setName(value);
      } else {
         this.getChartObject().setName(value);
      }

   }

   public boolean getSizeWithWindow() {
      return (this.h() & 255 & 4) == 0;
   }

   public void setSizeWithWindow(boolean value) {
      this.a((byte)(this.h() & 255 & 251));
      if (!value) {
         this.a((byte)(this.h() & 255 | 4));
      }

   }

   boolean i() {
      return this.o;
   }

   Chart(Worksheet sheet, int chartType) {
      this.p = sheet.c();
      this.q = sheet;
      this.o = !sheet.c().n().k();
      this.g = new ChartShape(sheet.getShapes(), this);
      this.u = new SeriesCollection(this);
      this.x = new ChartArea(this);
      this.k = new PivotOptions(this);
      this.w = new PlotArea(this);
      this.w.a();
      this.y = new Axis(0, true, this);
      this.z = new Axis(1, true, this);
      this.z.getMajorGridLines().setVisible(true);
      this.A = new Axis(1, false, this);
      this.B = new Axis(0, false, this);
      this.A.setCrossType(1);
      this.B.setCrossType(1);
      this.t = chartType;
      this.L();
   }

   Chart(Worksheet sheet) {
      this.p = sheet.c();
      this.q = sheet;
      this.o = !sheet.c().n().k();
      this.g = new ChartShape(sheet.getShapes(), this);
      this.u = new SeriesCollection(this);
      this.x = new ChartArea(this);
      this.k = new PivotOptions(this);
      this.w = new PlotArea(this);
      this.y = new Axis(0, true, this);
      this.z = new Axis(1, true, this);
      this.A = new Axis(1, false, this);
      this.B = new Axis(0, false, this);
      this.c = new zja(this);
   }

   Chart(Worksheet sheet, ShapeCollection shapes) {
      this.p = sheet.c();
      this.q = sheet;
      this.o = !sheet.c().n().k();
      this.g = new ChartShape(shapes, this);
      this.u = new SeriesCollection(this);
      this.x = new ChartArea(this);
      this.k = new PivotOptions(this);
      this.w = new PlotArea(this);
      this.y = new Axis(0, true, this);
      this.z = new Axis(1, true, this);
      this.A = new Axis(1, false, this);
      this.B = new Axis(0, false, this);
      this.c = new zja(this);
   }

   private void L() {
      if (this.q.getType() == 2) {
         this.m = this.m = (byte)(this.m | 4);
      }

      if (ChartCollection.c(this.t)) {
         this.w.getBorder().setVisible(false);
         this.w.getArea().setFormatting(1);
      } else if (ChartCollection.b(this.t) && !ChartCollection.e(this.t)) {
         this.L = new Walls(this);
      }

      switch(this.t) {
      case 3:
      case 43:
      case 69:
      case 70:
         this.Q = false;
         break;
      case 45:
      case 48:
         this.O = 0;
         this.Q = false;
         break;
      case 71:
      case 72:
         this.Q = false;
         this.P = 90;
         this.O = 0;
         this.T = 0;
      }

      this.c = new zja(this);
      ziz var1 = null;
      switch(this.t) {
      case 65:
         var1 = new ziz(this.c, 37, false);
         var1.b(true);
         this.c.a(var1);
         break;
      case 66:
         var1 = new ziz(this.c, 37, false);
         var1.b(true);
         var1.h(true);
         this.c.a(var1);
         break;
      case 67:
         this.getSecondValueAxis().setVisible(true);
         var1 = new ziz(this.c, 14, false);
         this.c.a(var1);
         var1 = new ziz(this.c, 37, true);
         var1.b(true);
         this.c.a(var1);
         break;
      case 68:
         this.getSecondValueAxis().setVisible(true);
         var1 = new ziz(this.c, 14, false);
         this.c.a(var1);
         var1 = new ziz(this.c, 37, true);
         var1.b(true);
         var1.c(100);
         var1.h(true);
         this.c.a(var1);
         break;
      default:
         var1 = new ziz(this.c, this.t, false);
         this.c.a(var1);
      }

   }

   WorksheetCollection j() {
      return this.p;
   }

   public Worksheet getWorksheet() {
      return this.q;
   }

   ChartCollection k() {
      return this.q.getCharts();
   }

   public ShapeCollection getShapes() {
      if (this.r == null) {
         this.r = new ShapeCollection(this.p, this.q, this.p.Q(), this, -1);
      }

      return this.r;
   }

   ShapeCollection l() {
      return this.r;
   }

   void a(ShapeCollection var1) {
      this.r = var1;
   }

   public int getPrintSize() {
      return this.s;
   }

   public void setPrintSize(int value) {
      this.s = value;
   }

   public int getType() {
      return this.t;
   }

   public void setType(int value) {
      if (this.t != value) {
         this.t = value;
         if (this.D != null && this.D.A() != null) {
            this.D.C();
         }

         this.L();
         int var2;
         switch(this.t) {
         case 65:
            if (this.u.getCount() != 3) {
               throw new CellsException(0, "To creat this stock chart,arrange the data on the your in this order:high price,low price,closing price");
            }

            for(var2 = 0; var2 < 3; ++var2) {
               this.u.get(var2).getBorder().setVisible(false);
               this.u.get(var2).a(this.c.a(0));
            }

            this.u.get(2).getMarker().setMarkerStyle(4);
            this.u.get(2).getMarker().a(Color.getBlack());
            this.u.get(2).getMarker().b(Color.getBlack());
            break;
         case 66:
            if (this.u.getCount() != 4) {
               throw new CellsException(0, "To creat this stock chart,arrange the data on the your in this order:opening price,high price,low price,closing price");
            }

            for(var2 = 0; var2 < 4; ++var2) {
               this.u.get(var2).getBorder().setVisible(false);
               this.u.get(var2).a(this.c.a(0));
            }

            return;
         case 67:
            if (this.u.getCount() != 4) {
               throw new CellsException(0, "To creat this stock chart,arrange the data on the your in this order:volumn traded,high price,low price,closing price");
            }

            this.u.get(0).a(this.c.a(0));

            for(var2 = 1; var2 < 4; ++var2) {
               this.u.get(var2).getBorder().setVisible(false);
               this.u.get(var2).a(this.c.a(1));
            }

            this.u.get(3).getMarker().setMarkerStyle(4);
            this.u.get(3).getMarker().a(Color.getBlack());
            this.u.get(3).getMarker().b(Color.getBlack());
            break;
         case 68:
            if (this.u.getCount() != 5) {
               throw new CellsException(0, "To creat this stock chart,arrange the data on the your in this order:volumn traded,opening price,high price,low price,closing price");
            }

            this.u.get(0).a(this.c.a(0));

            for(var2 = 1; var2 < 5; ++var2) {
               this.u.get(var2).getBorder().setVisible(false);
               this.u.get(var2).a(this.c.a(1));
            }

            return;
         default:
            Iterator var4 = this.u.iterator();

            while(var4.hasNext()) {
               Series var3 = (Series)var4.next();
               var3.a(this.c.a(0));
               var3.c();
            }
         }

      }
   }

   zja m() {
      return this.c;
   }

   void b(int var1) {
      this.t = var1;
   }

   public void move(int upperLeftRow, int upperLeftColumn, int lowerRightRow, int lowerRightColumn) {
      this.g.moveToRange(upperLeftRow, upperLeftColumn, lowerRightRow, lowerRightColumn);
   }

   public SeriesCollection getNSeries() {
      return this.u;
   }

   public Title getTitle() {
      if (this.v == null) {
         this.v = new Title(this);
         this.v.getBorder().setVisible(false);
         this.v.getArea().setFormatting(1);
      }

      return this.v;
   }

   Title n() {
      return this.v;
   }

   /** @deprecated */
   public ChartFrame getPlotAreaWithoutTickLabels() {
      ChartFrame var1 = new ChartFrame(this);
      var1.a(this.w.getInnerX(), this.w.getInnerY(), this.w.getInnerWidth(), this.w.getInnerHeight());
      return var1;
   }

   public PlotArea getPlotArea() {
      return this.w;
   }

   public ChartArea getChartArea() {
      return this.x;
   }

   public Axis getCategoryAxis() {
      return this.y;
   }

   public Axis getValueAxis() {
      return this.z;
   }

   public Axis getSecondValueAxis() {
      return this.A;
   }

   public Axis getSecondCategoryAxis() {
      return this.B;
   }

   public Axis getSeriesAxis() {
      if (this.C == null) {
         this.C = new Axis(2, true, this);
      }

      return this.C;
   }

   Axis o() {
      return this.C;
   }

   void a(boolean var1, Axis var2) {
      if (var1) {
         switch(var2.b()) {
         case 0:
            this.B = var2;
            break;
         case 1:
            this.A = var2;
         }
      } else {
         switch(var2.b()) {
         case 0:
            this.y = var2;
            break;
         case 1:
            this.z = var2;
            break;
         case 2:
            this.C = var2;
         }
      }

   }

   void a(boolean var1, Axis var2, Axis var3) {
      if ("valax".equals(var2.d.toLowerCase()) && "valax".equals(var3.d.toLowerCase())) {
         if (!"b".equals(var2.e) && !"t".equals(var2.e)) {
            var3.a(0);
         } else {
            var2.a(0);
         }
      }

      this.a(var1, var2);
      this.a(var1, var3);
   }

   public Legend getLegend() {
      if (this.D == null) {
         this.D = new Legend(this);
      }

      return this.D;
   }

   Legend p() {
      return this.D;
   }

   public ChartDataTable getChartDataTable() {
      if (this.E == null) {
         this.E = new ChartDataTable(this);
      }

      return this.E;
   }

   ChartDataTable q() {
      return this.E;
   }

   /** @deprecated */
   public boolean isLegendShown() {
      return this.F;
   }

   /** @deprecated */
   public void setLegendShown(boolean value) {
      this.F = value;
   }

   public boolean getShowLegend() {
      return this.F;
   }

   public void setShowLegend(boolean value) {
      this.F = value;
   }

   public boolean isRectangularCornered() {
      return this.G;
   }

   public void setRectangularCornered(boolean value) {
      this.G = value;
   }

   /** @deprecated */
   public boolean isDataTableShown() {
      return this.H;
   }

   /** @deprecated */
   public void setDataTableShown(boolean value) {
      this.H = value;
   }

   public boolean getShowDataTable() {
      return this.H;
   }

   public void setShowDataTable(boolean value) {
      this.H = value;
   }

   public int getFirstSliceAngle() {
      return this.c.a(0).A();
   }

   public void setFirstSliceAngle(int value) {
      if (value >= 0 && value <= 360) {
         this.c.a(0).d(value);
      } else {
         throw new IllegalArgumentException("First slice angle should be degree 0 to 360.");
      }
   }

   public int getGapWidth() {
      return this.c.a(0).z();
   }

   public void setGapWidth(int value) {
      if (value >= 0 && value <= 500) {
         this.c.a(0).c(value);
      } else {
         throw new IllegalArgumentException("The GapWidth should be degree 0 to 500.");
      }
   }

   public int getGapDepth() {
      return this.I;
   }

   public void setGapDepth(int value) {
      if (value >= 0 && value <= 500) {
         this.I = value;
      } else {
         throw new IllegalArgumentException("The GapWidth should be degree 0 to 500.");
      }
   }

   public void calculate() throws Exception {
      this.a(true, false);
   }

   void a(boolean var1) {
      this.J = var1;
   }

   void a(boolean var1, boolean var2) throws Exception {
      zie var3 = new zie();
      if (var1) {
         var3.a(this, var1, var2);
      } else if (!this.J) {
         var3.a(this, var1, var2);
         this.J = true;
      }

   }

   void a(Chart var1, CopyOptions var2) throws Exception {
      var2.n = var1.j().n().i();
      var2.o = this.j().n().i();
      if (var2.n != var2.o) {
         var1.calculate();
      }

      if (var2.i == null) {
         HashMap var3 = new HashMap();
         Worksheet var4 = var1.getWorksheet();
         int[] var5 = var4.c().q().c(var4.c().u(), var4.getIndex());
         int var6 = this.j().q().b(this.j().u(), this.getWorksheet().getIndex());

         int var7;
         for(var7 = 0; var7 < var5.length; ++var7) {
            var3.put(var5[var7], var6);
         }

         var7 = this.j().q().f(this.j().u(), 65535, 65535);
         if (var7 == -1) {
            var7 = this.j().q().b(this.j().u(), 65535, 65535);
         }

         HashMap var8 = new HashMap();
         var2.i = var3;
         var2.k = var8;
         if (this.p != var4.c() && var2.getReferToSheetWithSameName()) {
            for(int var9 = 0; var9 < var4.c().getCount(); ++var9) {
               Worksheet var10 = var4.c().get(var9);
               if (var10 != var4) {
                  Worksheet var11 = this.p.get(var10.getName());
                  if (var11 != null) {
                     var5 = var4.c().q().c(var4.c().u(), var10.getIndex());
                     var6 = this.j().q().b(this.j().u(), var11.getIndex());

                     for(int var12 = 0; var12 < var5.length; ++var12) {
                        var3.put(var5[var12], var6);
                     }
                  }
               }
            }
         }
      }

      this.n = var1.n;
      this.G = var1.G;
      this.e = var1.e;
      this.y.a(var1.y, var2);
      this.z.a(var1.z, var2);
      this.B.a(var1.B, var2);
      this.A.a(var1.A, var2);
      this.f = var1.f;
      if (var1.a != null) {
         this.a = new zpe();
         if (var1.a.e != null) {
            this.a.e = var1.a.e;
         }

         this.a.a = var1.a.a;
      }

      if (var1.c != null) {
         this.c.clear();
         Iterator var13 = var1.c.iterator();

         while(var13.hasNext()) {
            ziz var14 = (ziz)var13.next();
            ziz var15 = new ziz(this.c);
            var15.a(var14, var2);
            this.c.b(var15);
         }
      }

      if (var1.C != null) {
         this.getSeriesAxis().a(var1.C, var2);
      } else {
         this.C = null;
      }

      this.x.a(var1.x, var2);
      this.H = var1.H;
      this.F = var1.F;
      if (var1.D != null) {
         if (this.D == null) {
            this.D = new Legend(this);
         }

         this.D.a(var1.D, var2);
      }

      this.t = var1.t;
      if (var1.E != null) {
         this.E = new ChartDataTable(this);
         this.E.a(var1.E, var2);
      } else {
         this.E = null;
      }

      if (var1.v != null) {
         if (this.v == null) {
            this.v = new Title(this);
         }

         this.v.a(var1.v, var2);
      } else {
         this.v = null;
      }

      this.w.a(var1.w, var2);
      this.u.a(var1.u, var2);
      this.O = var1.O;
      this.U = var1.U;
      this.N = var1.N;
      this.Q = var1.Q;
      this.R = var1.R;
      this.P = var1.P;
      this.S = var1.S;
      if (var1.L != null) {
         this.L = new Walls(this);
         this.L.a(var1.L, var2);
      } else {
         this.L = null;
      }

      if (var1.K != null) {
         this.K = new Floor(this);
         this.K.a(var1.K, var2);
      } else {
         this.K = null;
      }

      this.m = var1.m;
      if (var1.r != null && var1.r.getCount() != 0) {
         this.r = null;
         this.getShapes().a(var1.getShapes(), var2);
      } else {
         this.r = null;
      }

      this.X = null;
      if (var1.X != null) {
         this.getPageSetup().a(var1.X, var2);
      }

      this.l = var1.l;
      this.k.a(var1.k);
      this.Y = var1.Y;
      this.Z = var1.Z;
      this.aa = var1.aa;
      this.ac = var1.ac;
   }

   public Floor getFloor() {
      if (ChartCollection.b(this.t) && this.K == null) {
         this.K = new Floor(this);
      }

      return this.K;
   }

   Floor r() {
      if (this.K == null) {
         this.K = new Floor(this);
      }

      return this.K;
   }

   Floor s() {
      return this.K;
   }

   public Walls getWalls() {
      if (ChartCollection.b(this.t) && this.L == null) {
         this.L = new Walls(this);
      }

      return this.L;
   }

   public Walls getBackWall() {
      if (ChartCollection.b(this.t) && this.L == null) {
         this.L = new Walls(this);
      }

      return this.L;
   }

   public Walls getSideWall() {
      if (ChartCollection.b(this.t) && this.M == null) {
         this.M = new Walls(this);
      }

      return this.M;
   }

   Walls t() {
      return this.L;
   }

   Walls u() {
      return this.L;
   }

   Walls v() {
      if (this.L == null) {
         this.L = new Walls(this);
      }

      return this.L;
   }

   Walls w() {
      return this.M;
   }

   Walls x() {
      if (this.M == null) {
         this.M = new Walls(this);
      }

      return this.M;
   }

   Walls y() {
      if (this.L == null) {
         this.L = new Walls(this);
      }

      return this.L;
   }

   public boolean getWallsAndGridlines2D() {
      if (!ChartCollection.b(this.t)) {
         this.N = false;
      }

      return this.N;
   }

   public void setWallsAndGridlines2D(boolean value) {
      if (ChartCollection.b(this.t)) {
         this.N = value;
      }

   }

   public int getRotationAngle() {
      return this.O;
   }

   public void setRotationAngle(int value) {
      if (this.t != 11 && this.t != 9 && this.t != 10) {
         if (value < 0 || value > 360) {
            throw new IllegalArgumentException();
         }

         this.O = value;
      } else {
         if (value < 0 || value > 44) {
            throw new IllegalArgumentException();
         }

         this.O = value;
      }

   }

   /** @deprecated */
   public int getRotation() {
      return this.O;
   }

   /** @deprecated */
   public void setRotation(int value) {
      this.setRotationAngle(value);
   }

   public int getElevation() {
      return this.P;
   }

   public void setElevation(int value) {
      if (this.t != 11 && this.t != 9 && this.t != 10) {
         if (value < -90 || value > 90) {
            throw new IllegalArgumentException();
         }

         this.P = value;
      } else {
         if (value < 0 || value > 44) {
            throw new IllegalArgumentException();
         }

         this.P = value;
      }

   }

   public boolean getRightAngleAxes() {
      return this.Q;
   }

   public void setRightAngleAxes(boolean value) {
      this.Q = value;
   }

   public boolean getAutoScaling() {
      return this.R;
   }

   public void setAutoScaling(boolean value) {
      this.R = value;
   }

   public short getHeightPercent() {
      return this.S;
   }

   public void setHeightPercent(short value) {
      if (value >= 5 && value <= 500) {
         this.S = value;
      } else {
         throw new CellsException(0, "The height percent must be between 5 and 500.");
      }
   }

   public short getPerspective() {
      return this.T;
   }

   public void setPerspective(short value) {
      if (this.T >= 0 && this.T <= 100) {
         this.T = value;
      } else {
         throw new CellsException(0, "The perspective must be between 0 and 100.");
      }
   }

   public boolean getIs3D() {
      return ChartCollection.b(this.t);
   }

   public int getDepthPercent() {
      return this.U;
   }

   public void setDepthPercent(int value) {
      if (value >= 20 && value <= 2000) {
         this.U = value;
      } else {
         throw new IllegalArgumentException();
      }
   }

   com.aspose.cells.b.a.b.za z() throws Exception {
      ImageOrPrintOptions var1 = new ImageOrPrintOptions();
      ImageFormat var2 = ImageFormat.getBmp();
      return this.a(var1);
   }

   com.aspose.cells.b.a.b.za a(ImageOrPrintOptions var1) throws Exception {
      zjo var2 = new zjo(var1);

      com.aspose.cells.b.a.b.za var3;
      try {
         var3 = var2.a(this);
      } finally {
         if (var2 != null) {
            var2.b();
         }

      }

      return var3;
   }

   public void toImage(String imageFile) throws Exception {
      ImageOrPrintOptions var2 = new ImageOrPrintOptions();
      ImageFormat var3 = zbuk.a((String)com.aspose.cells.b.a.d.zk.d(imageFile), (ImageFormat)null);
      var2.setImageFormat(var3);
      this.toImage(imageFile, var2);
   }

   public void toImage(String imageFile, ImageFormat imageFormat) throws Exception {
      ImageOrPrintOptions var3 = new ImageOrPrintOptions();
      var3.setImageFormat(imageFormat);
      this.toImage(imageFile, var3);
   }

   public void toImage(String imageFile, long jpegQuality) throws Exception {
      ImageOrPrintOptions var4 = new ImageOrPrintOptions();
      var4.setImageFormat(ImageFormat.getJpeg());
      var4.setQuality((int)jpegQuality);
      this.toImage(imageFile, var4);
   }

   void a(com.aspose.cells.b.a.d.zm var1, long var2) throws Exception {
      ImageOrPrintOptions var4 = new ImageOrPrintOptions();
      var4.setImageFormat(ImageFormat.getJpeg());
      var4.setQuality((int)var2);
      this.a(var1, var4);
   }

   void a(com.aspose.cells.b.a.d.zm var1, ImageFormat var2) throws Exception {
      ImageOrPrintOptions var3 = new ImageOrPrintOptions();
      var3.setImageFormat(var2);
      this.a(var1, var3);
   }

   public void toImage(String imageFile, ImageOrPrintOptions options) throws Exception {
      if (options == null) {
         options = new ImageOrPrintOptions();
      }

      String var3 = com.aspose.cells.b.a.d.zk.d(imageFile);
      var3 = var3.toLowerCase();
      if (".svg".equals(var3)) {
         options.setSaveFormat(22);
      } else if (".xps".equals(var3)) {
         options.setSaveFormat(20);
      } else {
         ImageFormat var4 = zbuk.a(var3, options.getImageFormat());
         options.setImageFormat(var4);
      }

      com.aspose.cells.b.a.d.ze var8 = new com.aspose.cells.b.a.d.ze(imageFile, 2);

      try {
         this.a((com.aspose.cells.b.a.d.zm)var8, (ImageOrPrintOptions)options);
      } finally {
         if (var8 != null) {
            var8.a();
         }

      }

   }

   public void toImage(OutputStream stream, ImageOrPrintOptions options) throws Exception {
      com.aspose.cells.b.a.d.zh var3 = new com.aspose.cells.b.a.d.zh();

      try {
         this.a((com.aspose.cells.b.a.d.zm)var3, (ImageOrPrintOptions)options);
         var3.a(0L, 0);
         var3.a(stream);
      } finally {
         if (var3 != null) {
            var3.a();
         }

      }

   }

   void a(com.aspose.cells.b.a.d.zm var1, ImageOrPrintOptions var2) throws Exception {
      if (var2 == null) {
         var2 = new ImageOrPrintOptions();
      }

      if (var2.getSaveFormat() == 22) {
         this.b(var1, var2);
      } else if (var2.getSaveFormat() == 20) {
         this.c(var1, var2);
      } else {
         zjo var3 = new zjo(var2);

         try {
            var3.a(var1, this);
         } finally {
            if (var3 != null) {
               var3.b();
            }

         }
      }

   }

   private void b(com.aspose.cells.b.a.d.zm var1, ImageOrPrintOptions var2) throws Exception {
      com.aspose.cells.b.a.d.zh var3 = new com.aspose.cells.b.a.d.zh();

      try {
         ImageOrPrintOptions var4 = new ImageOrPrintOptions();
         var4.setImageFormat(ImageFormat.getEmf());
         this.a((com.aspose.cells.b.a.d.zm)var3, (ImageOrPrintOptions)var4);
         var3.a(0L, 0);
         com.aspose.cells.a.d.zfp var5 = new com.aspose.cells.a.d.zfp(var2);
         var5.e = ImageFormat.getEmf();
         com.aspose.cells.b.a.b.zt var6 = new com.aspose.cells.b.a.b.zt((float)this.g.getWidthPt(), (float)this.g.getHeightPt());
         com.aspose.cells.a.d.zm var7 = new com.aspose.cells.a.d.zm(var6.b(), var6.c());
         com.aspose.cells.a.d.zb var8 = new com.aspose.cells.a.d.zb();
         com.aspose.cells.a.d.zj var9 = com.aspose.cells.a.d.zj.a(new com.aspose.cells.b.a.b.zo(0.0F, 0.0F), var6, var3);
         var8.a((com.aspose.cells.a.d.zl)var9);
         var7.a(var8);
         var5.a(var7, var1, var2.getEmbededImageNameInSvg());
         var5.a();
         var1.b(0L);
      } finally {
         if (var3 != null) {
            var3.a();
         }

      }

   }

   private void c(com.aspose.cells.b.a.d.zm var1, ImageOrPrintOptions var2) throws Exception {
      com.aspose.cells.b.a.d.zh var3 = new com.aspose.cells.b.a.d.zh();

      try {
         ImageOrPrintOptions var4 = new ImageOrPrintOptions();
         var4.setImageFormat(ImageFormat.getEmf());
         this.a((com.aspose.cells.b.a.d.zm)var3, (ImageOrPrintOptions)var4);
         var3.a(0L, 0);
         com.aspose.cells.a.d.zgp var5 = new com.aspose.cells.a.d.zgp(var1);
         var5.e = ImageFormat.getEmf();
         com.aspose.cells.b.a.b.zt var6 = new com.aspose.cells.b.a.b.zt((float)this.g.getWidthPt(), (float)this.g.getHeightPt());
         com.aspose.cells.a.d.zm var7 = new com.aspose.cells.a.d.zm(var6.b(), var6.c());
         com.aspose.cells.a.d.zb var8 = new com.aspose.cells.a.d.zb();
         com.aspose.cells.a.d.zj var9 = com.aspose.cells.a.d.zj.a(new com.aspose.cells.b.a.b.zo(0.0F, 0.0F), var6, var3);
         var8.a((com.aspose.cells.a.d.zl)var9);
         var7.a(var8);
         var5.a((com.aspose.cells.a.d.zl)var7);
         var5.a();
         var1.b(0L);
      } finally {
         if (var3 != null) {
            var3.a();
         }

      }

   }

   com.aspose.cells.a.d.zb A() throws Exception {
      zjo var1 = new zjo((ImageOrPrintOptions)null);

      com.aspose.cells.a.d.zb var2;
      try {
         var2 = var1.b(this);
      } finally {
         if (var1 != null) {
            var1.b();
         }

      }

      return var2;
   }

   ArrayList B() {
      if (this.V == null) {
         this.V = new ArrayList();
      }

      return this.V;
   }

   void a(Font var1, ArrayList var2) {
      if (var1.d()) {
         this.b(var1, var2);
      } else {
         this.c(var1, var2);
      }

   }

   void a(ArrayList var1) {
      if (!this.j().n().k()) {
         this.W = new ArrayList();
         if (this.V == null) {
            this.V = new ArrayList();
         }

         this.c(var1);
         this.W = null;
         if (this.r != null) {
            this.r.b();
         }

      }
   }

   void b(Font var1, ArrayList var2) {
      zbi var3 = (zbi)var1.c();
      if (var3 != null) {
         Iterator var4 = this.V.iterator();

         zbi var5;
         do {
            if (!var4.hasNext()) {
               com.aspose.cells.b.a.a.ze.a(var2, (Object)var1);
               var1.d(var2.size());
               zbi var6 = (zbi)var1.c();
               com.aspose.cells.b.a.a.ze.a(this.V, (Object)var6);
               var6.d = var1.j();
               return;
            }

            var5 = (zbi)var4.next();
         } while(!var5.a(var3, var1));

         var1.d(var5.d);
         var3.d = var1.j();
      }
   }

   int a(Font var1, ArrayList var2, int var3, boolean[] var4) {
      var4[0] = false;
      boolean var5 = false;

      int var7;
      for(var7 = var3; var7 < var2.size(); ++var7) {
         Font var6 = (Font)var2.get(var7);
         if ((!var1.d() || !var6.d() || var1.c() != var6.c()) && var1.a(var6)) {
            var1.d(var6.j());
            return var7;
         }
      }

      com.aspose.cells.b.a.a.ze.a(var2, (Object)var1);
      var1.d(var2.size());
      var4[0] = true;
      return var7;
   }

   void c(Font var1, ArrayList var2) {
      Iterator var3 = this.W.iterator();

      while(var3.hasNext()) {
         Font var4 = (Font)var3.next();
         if (var4.a(var1)) {
            var1.d(var4.j());
            return;
         }
      }

      int var9 = -1;
      boolean var10 = false;
      boolean var5 = false;

      while(true) {
         boolean[] var6 = new boolean[]{var10};
         var9 = this.a(var1, var2, var9 + 1, var6);
         var10 = var6[0];
         if (var10) {
            com.aspose.cells.b.a.a.ze.a(this.W, (Object)var1);
            return;
         }

         Iterator var7 = this.V.iterator();

         while(var7.hasNext()) {
            zbi var8 = (zbi)var7.next();
            if (var8.d == var1.j()) {
               var5 = true;
               break;
            }
         }

         if (!var5) {
            com.aspose.cells.b.a.a.ze.a(this.W, (Object)var1);
            return;
         }

         var5 = false;
      }
   }

   zbi c(int var1) {
      if (this.V == null) {
         return null;
      } else {
         Iterator var2 = this.V.iterator();

         zbi var3;
         do {
            if (!var2.hasNext()) {
               return null;
            }

            var3 = (zbi)var2.next();
         } while(var3.d != var1);

         return var3;
      }
   }

   void b(ArrayList var1) {
      if (this.p.n().i() != 1 || this.x.g() != null) {
         if (this.x.g() != null || this.x.h() == -1 || this.x.a() == -1) {
            if (this.x.getAutoScaleFont()) {
               Font var2 = this.x.getFont();
               this.b(var2, var1);
               this.B().remove(var2.c());
               this.B().add(0, var2.c());
               zbi var3 = new zbi(this, 0, false);
               var3.a((zbi)var2.c());
               var3.c = 0;
               Font var4 = new Font(this.j(), var3, true);
               var4.c(var2);
               var4.a((Object)var3);
               this.b(var4, var1);
               this.B().remove(var4.c());
               this.B().add(0, var4.c());
               this.x.c(this.x.getFont().j());
            } else {
               this.a(this.x.getFont(), var1);
               this.x.c(this.x.getFont().j());
            }

            this.x.a(-1);
         }

      }
   }

   void c(ArrayList var1) {
      this.b(var1);
      if (this.H && this.E != null && this.E.a() != null) {
         this.a(this.E.a(), var1);
      }

      this.a(this.v, var1);
      if (this.D != null) {
         this.a((ChartFrame)this.D, (ArrayList)var1);
         if (this.F && this.D.A() != null) {
            LegendEntryCollection var2 = this.D.getLegendEntries();

            for(int var3 = 0; var3 < var2.getCount(); ++var3) {
               LegendEntry var4 = var2.b(var3);
               if (var4 != null && var4.a() != null) {
                  this.a(var4.a(), var1);
               }
            }
         }
      }

      this.a(this.y, var1);
      this.a(this.z, var1);
      this.a(this.A, var1);
      this.a(this.getSecondCategoryAxis(), var1);
      this.a(this.z, this.getSecondValueAxis(), var1);
      if (this.o() != null) {
         this.a(this.o(), var1);
      }

      for(int var6 = 0; var6 < this.u.getCount(); ++var6) {
         Series var7 = this.u.get(var6);
         this.a(var7.p(), var1);
         if (var7.b() != null) {
            ChartPointCollection var8 = var7.getPoints();

            for(int var5 = 0; var5 < var8.a(); ++var5) {
               this.a(var8.c(var5).j(), var1);
            }
         }

         if (var7.o() != null && var7.getTrendLines().getCount() != 0) {
            for(int var9 = 0; var9 < var7.getTrendLines().getCount(); ++var9) {
               Trendline var10 = var7.getTrendLines().get(var9);
               this.a(var10.b(), var1);
            }
         }
      }

   }

   void a(Title var1, ArrayList var2) {
      if (var1 != null) {
         if (var1.g() != null) {
            this.a(var1.getFont(), var2);
            var1.c(var1.getFont().j());
         }

         if (var1.D() != null) {
            if (var1.g() == null && var1.h() == -1) {
               this.a(var1.getFont(), var2);
            }

            Iterator var3 = var1.D().iterator();

            while(var3.hasNext()) {
               FontSetting var4 = (FontSetting)var3.next();
               if (var4.c() != null) {
                  this.a(var4.c(), var2);
               }
            }
         }
      }

   }

   void a(ChartFrame var1, ArrayList var2) {
      if (var1 != null && var1.g() != null) {
         this.a(var1.getFont(), var2);
         var1.c(var1.getFont().j());
      }

   }

   void a(DataLabels var1, ArrayList var2) {
      if (var1 != null && var1.g() != null) {
         this.a(var1.getFont(), var2);
         var1.c(var1.getFont().j());
         if (var1.a() != null) {
            Iterator var3 = var1.a().iterator();

            while(var3.hasNext()) {
               FontSetting var4 = (FontSetting)var3.next();
               if (var4.c() != null) {
                  this.a(var4.c(), var2);
               }
            }
         }
      }

   }

   void a(Axis var1, ArrayList var2) {
      if (var1 != null) {
         if (var1.k() != null && var1.getTickLabels().a() != null) {
            this.a(var1.getTickLabels().getFont(), var2);
            var1.getTickLabels().a(var1.getTickLabels().getFont().j());
         }

         if (var1.m() != null && var1.m().g() != null) {
            this.a(var1.getDisplayUnitLabel().getFont(), var2);
            var1.getDisplayUnitLabel().c(var1.getDisplayUnitLabel().getFont().j());
         }

         this.a(var1.n(), var2);
      }
   }

   void a(Axis var1, Axis var2, ArrayList var3) {
      boolean var4 = var1.b() == 1 && var1.getDisplayUnit() != 0 && var1.isDisplayUnitLabelShown();
      Font var5 = null;
      if (var4) {
         var5 = var1.getDisplayUnitLabel().getFont();
         this.a(var5, var3);
         if (var1.getDisplayUnitLabel().getAutoScaleFont()) {
            ((zbi)var5.c()).d = var5.j();
         }

         var1.getDisplayUnitLabel().c(var5.j());
      }

      var4 = var2.b() == 1 && var2.getDisplayUnit() != 0 && var2.isDisplayUnitLabelShown();
      if (var4) {
         var5 = var2.getDisplayUnitLabel().getFont();
         this.a(var5, var3);
         if (var2.getDisplayUnitLabel().getAutoScaleFont()) {
            ((zbi)var5.c()).d = var5.j();
         }

         var2.getDisplayUnitLabel().c(var5.j());
      }

   }

   void C() {
      TickLabels var1 = this.y.k();
      if (var1 != null && var1.getNumberFormat() != null && !var1.getNumberFormatLinked()) {
         var1.c(this.p.d(var1.getNumberFormat()));
      }

      var1 = this.z.k();
      if (var1 != null && var1.getNumberFormat() != null && !var1.getNumberFormatLinked()) {
         var1.c(this.p.d(var1.getNumberFormat()));
      }

      var1 = this.getSecondValueAxis().k();
      if (var1 != null && var1.getNumberFormat() != null && !var1.getNumberFormatLinked()) {
         var1.c(this.p.d(var1.getNumberFormat()));
      }

      if (this.o() != null) {
         var1 = this.o().k();
         if (var1 != null && var1.getNumberFormat() != null && !var1.getNumberFormatLinked()) {
            var1.c(this.p.d(var1.getNumberFormat()));
         }
      }

      var1 = this.getSecondCategoryAxis().k();
      if (var1 != null && var1.getNumberFormat() != null && !var1.getNumberFormatLinked()) {
         var1.c(this.p.d(var1.getNumberFormat()));
      }

      Iterator var2 = this.u.iterator();

      while(var2.hasNext()) {
         Series var3 = (Series)var2.next();
         DataLabels var4 = null;
         if (var3.b() != null) {
            ArrayList var5 = var3.b().a;
            Iterator var6 = var5.iterator();

            while(var6.hasNext()) {
               ChartPoint var7 = (ChartPoint)var6.next();
               if (var7.j() != null && var7.j().Q()) {
                  var4 = var7.j();
                  if (!var4.getNumberFormatLinked() && var4.getNumberFormat() != null) {
                     var4.a(this.p.d(var4.getNumberFormat()));
                  }
               }
            }
         }

         var4 = var3.p();
         if (var4 != null && var4.Q() && !var4.getNumberFormatLinked() && var4.getNumberFormat() != null) {
            var4.a(this.p.d(var4.getNumberFormat()));
         }
      }

   }

   public int getPlacement() {
      return this.getChartObject().getPlacement();
   }

   public void setPlacement(int value) {
      this.getChartObject().setPlacement(value);
   }

   public PageSetup getPageSetup() {
      if (this.X == null) {
         this.X = new PageSetup(this.q, this);
         this.X.b();
      }

      return this.X;
   }

   double D() {
      return this.Y;
   }

   void a(double var1) {
      this.Y = var1;
   }

   double E() {
      return this.Z;
   }

   void b(double var1) {
      this.Z = var1;
   }

   void F() {
      if (this.l() != null && this.l().getCount() > 0) {
         this.getShapes().m();
      }

      Title var1 = this.n();
      if (var1 != null && var1.x != null) {
         var1.x = zcq.a(var1.x, -1, 0, 0, false);
      }

      var1 = this.y.n();
      if (var1 != null && var1.x != null) {
         var1.x = zcq.a(var1.x, -1, 0, 0, false);
      }

      var1 = this.z.n();
      if (var1 != null && var1.x != null) {
         var1.x = zcq.a(var1.x, -1, 0, 0, false);
      }

      for(int var2 = 0; var2 < this.u.getCount(); ++var2) {
         Series var3 = this.u.get(var2);
         Object var4 = var3.k();
         if (var4 != null && var4 instanceof byte[]) {
            byte[] var5 = (byte[])((byte[])var4);
            var3.a((Object)zcq.a(var5, -1, 0, 0, false));
         }

         if (var3.m() != null) {
            var3.b((zik)((zil)var3.m()).t());
         }

         if (var3.l() != null) {
            var3.a((zik)((zil)var3.l()).t());
         }

         if (var3.n() != null) {
            var3.c((zik)((zil)var3.n()).t());
         }

         ErrorBar var9;
         if (var3.w() != null) {
            var9 = var3.w();
            if (var9.c() != null) {
               var9.b(((zil)var9.c()).t());
            }

            if (var9.b() != null) {
               var9.a((zik)((zil)var9.b()).t());
            }
         }

         if (var3.x() != null) {
            var9 = var3.x();
            if (var9.c() != null) {
               var9.b(((zil)var9.c()).t());
            }

            if (var9.b() != null) {
               var9.a((zik)((zil)var9.b()).t());
            }
         }

         if (var3.p() != null && var3.getDataLabels().n != null) {
            var3.getDataLabels().n = ((zil)var3.getDataLabels().n).t();
         }

         if (var3.b() != null) {
            ArrayList var10 = var3.b().a;

            for(int var6 = 0; var6 < var10.size(); ++var6) {
               ChartPoint var7 = (ChartPoint)var10.get(var6);
               if (var7.j() != null) {
                  DataLabels var8 = var7.j();
                  if (var8.n != null) {
                     var8.n = ((zil)var8.n).t();
                  }
               }
            }
         }
      }

   }

   void G() {
      if (this.l() != null && this.l().getCount() > 0) {
         this.getShapes().l();
      }

      Title var1 = this.n();
      if (var1 != null && var1.x != null) {
         var1.x = zcr.a(var1.x, -1);
      }

      var1 = this.y.n();
      if (var1 != null && var1.x != null) {
         var1.x = zcr.a(var1.x, -1);
      }

      var1 = this.z.n();
      if (var1 != null && var1.x != null) {
         var1.x = zcr.a(var1.x, -1);
      }

      for(int var2 = 0; var2 < this.u.getCount(); ++var2) {
         Series var3 = this.u.get(var2);
         Object var4 = var3.k();
         if (var4 != null && var4 instanceof byte[]) {
            byte[] var5 = (byte[])((byte[])var4);
            var3.a((Object)zcr.a(var5, -1));
         }

         if (var3.m() != null) {
            var3.b((zik)((zim)var3.m()).u());
         }

         if (var3.l() != null) {
            var3.a((zik)((zim)var3.l()).u());
         }

         if (var3.n() != null) {
            var3.c((zik)((zim)var3.n()).u());
         }

         ErrorBar var9;
         if (var3.w() != null) {
            var9 = var3.w();
            if (var9.c() != null) {
               var9.b(((zim)var9.c()).u());
            }

            if (var9.b() != null) {
               var9.a((zik)((zim)var9.b()).u());
            }
         }

         if (var3.x() != null) {
            var9 = var3.x();
            if (var9.c() != null) {
               var9.b(((zim)var9.c()).u());
            }

            if (var9.b() != null) {
               var9.a((zik)((zim)var9.b()).u());
            }
         }

         if (var3.p() != null && var3.getDataLabels().n != null) {
            var3.getDataLabels().n = ((zim)var3.getDataLabels().n).u();
         }

         if (var3.b() != null) {
            ArrayList var10 = var3.b().a;

            for(int var6 = 0; var6 < var10.size(); ++var6) {
               ChartPoint var7 = (ChartPoint)var10.get(var6);
               if (var7.j() != null) {
                  DataLabels var8 = var7.j();
                  if (var8.n != null) {
                     var8.n = ((zim)var8.n).u();
                  }
               }
            }
         }
      }

   }

   void a(zqa var1) throws Exception {
      if (this.X == null) {
         var1.a((int)20);
         var1.a((int)21);
         var1.a(131203);
         var1.c(0);
         var1.a(131204);
         var1.c(0);
      } else {
         if (this.X.j() != null && this.X.j().getCount() != 0) {
            zayt var2 = new zayt();
            var2.a(this.X.j());
            var2.c(var1);
         }

         zafk var5 = new zafk(true);
         var5.a(this.X.a);
         var5.a(var1);
         zafk var3 = new zafk(false);
         var3.a(this.X.b);
         var3.a(var1);
         var1.c(131);
         var1.c(2);
         if (this.X.getCenterHorizontally()) {
            var1.c(1);
         } else {
            var1.c(0);
         }

         var1.c(132);
         var1.c(2);
         if (this.X.getCenterVertically()) {
            var1.c(1);
         } else {
            var1.c(0);
         }

         if (this.X.getLeftMargin() >= 0.0D) {
            var1.c(38);
            var1.c(8);
            var1.a(this.X.getLeftMarginInch());
         }

         if (this.X.getRightMargin() >= 0.0D) {
            var1.c(39);
            var1.c(8);
            var1.a(this.X.getRightMarginInch());
         }

         if (this.X.getTopMargin() >= 0.0D) {
            var1.c(40);
            var1.c(8);
            var1.a(this.X.getTopMarginInch());
         }

         if (this.X.getBottomMargin() >= 0.0D) {
            var1.c(41);
            var1.c(8);
            var1.a(this.X.getBottomMarginInch());
         }

         if (this.X.a() != null) {
            zasl var4 = new zasl();
            var4.a(this.X.a());
            var4.a(var1);
         }

         zbcx var6 = new zbcx();
         var6.b(this.X.d());
         var6.a(var1);
      }
   }

   /** @deprecated */
   public ChartShape getChartShape() {
      return this.getChartObject();
   }

   int H() {
      return this.aa;
   }

   void d(int var1) {
      this.aa = var1;
   }

   zbmi I() {
      return this.ab;
   }

   void a(zbmi var1) {
      this.ab = var1;
   }

   public boolean hasAxis(int aixsType, boolean isPrimary) {
      boolean var3 = false;
      boolean var4 = false;
      boolean var5 = false;
      boolean var6 = false;

      for(int var7 = 0; var7 < this.c.getCount(); ++var7) {
         ziz var8 = this.c.a(var7);
         if (!ChartCollection.d(var8.j())) {
            var3 = true;
         } else {
            var4 = true;
         }

         if (var8.m()) {
            var6 = true;
         }

         if (!var5) {
            var5 = ChartCollection.f(var8.j());
         }
      }

      if (!var3 && !var4) {
         return false;
      } else if (aixsType != 0 && aixsType != 1) {
         return var5;
      } else if (isPrimary) {
         if (!var4 && var3) {
            return false;
         } else {
            return true;
         }
      } else if (var6 && !var3) {
         return true;
      } else {
         return false;
      }
   }

   boolean J() {
      return this.ac;
   }

   public void setChartDataRange(String area, boolean isVertical) {
      this.u.clear();
      this.u.a(area, isVertical, true);
   }
}
